set terminal png size 200,100
#set terminal png large
set output "timeline_zoom.png"

sum=0
cum_sum(x)=(sum=sum+x,sum-x/2)
set yrange [-1:2]
set xrange [0:*]
unset ytics
unset xtics
#set xlabel "time in sec"
set style fill solid 0.8
#set boxwidth 0.1 relative
LABELS="Aoi"
#set key top right title "running" 
#set key top right title "stage-in" 
#set key top right title "stage-out" 
set style line 1 lc rgb 'orange'
set style line 2 lc rgb 'dark-green'
set style line 3 lc rgb 'red'
plot 'timeline_analysis_zoom.txt' using (cum_sum($2)):(1.0):($2):(strstrt(LABELS,strcol(1))) w boxes notitle lc variable

